<!DOCTYPE html>
<html>
<head>
<title>{$site_name}</title>
<meta name="keywords" content="{$site_seo_keywords}" />
<meta name="description" content="{$site_seo_description}">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <link href="__TMPL__Public/assets/css/header.css" rel="stylesheet" type="text/css">
    <link href="__TMPL__Public/assets/css/header.css" rel="stylesheet" type="text/css">
    <link href="__TMPL__Public/assets/css/member.css" type="text/css" rel="stylesheet">

    <link href="__TMPL__Public/assets/css/jquery-ui-1.8.13.custom.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__TMPL__Public/assets/js/jquery-1.6.1.min.js"></script>
    <script type="text/javascript" src="__TMPL__Public/assets/js/jquery.form.js"></script>
    <script type="text/javascript" src="__TMPL__Public/assets/js/jquery.Jcrop.min.js"></script>
    <script type="text/javascript" src="__TMPL__Public/assets/js/jquery-ui-1.8.13.custom.min.js"></script>
    <script type="text/javascript" src="__TMPL__Public/assets/js/uploadUserIcon.js"></script>
    <script type="text/javascript" src="__TMPL__Public/assets/js/easydialog.min.js"></script>
    <script type="text/javascript">

        var dataValue = {
            webRoot: "" //当前路径
        };
    </script>
    <style>
        .member .memberbox .memberL .l-title h3 a{
            _background:none;
            filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/template/ydtCopy/module/member/statics/images/back.png', sizingMethod='crop');
        }
    </style>
</head>

<body class="body-white">
	<tc_include file="Public:nav" />


    <!--会员中心-->
    <div class="member">

        <!--所在位置-->
        <tc_include file="Public:position" />
        <!--end 所在位置-->

        <!--会员中心首页-->
        <div class="memberbox">
            <!--会员中心左边-->
            <tc_include file="Public:menu_left" />
            <!--end 会员中心左边-->

            <!--会员中心右边-->
            <div class="memberR">
                <div class="r-titleTb"><h2>个人资料</h2></div>
                <div class="evaluate">
                    <div class="userPic_upload">
                        <div class="l">


                            <div style="display:none;" id="tip" class="box" title="上传图片">
                               <div align="center" id="tiptext"
                                    style="font-size: 14px;font-weight: bold;padding: 15px">
                                   <form id="upload" action="/index.php?g=product&m=member&a=modify_avatar_upload" method="post"
                                         enctype="multipart/form-data">
                                       <input type="file" id="tmpFile" name="imageFile"/>
                                   </form>
                               </div>
                           </div>
                           <div class="tips">
                               <div id="drop"><img alt="" id="" src="{$return_path}"/></div>

                           </div>


                        </div>
                        <div class="r">
                            <div class="pic1"><img alt="头像80*80" id="fileId80" src="{$return_path}"><br>80*80
                            </div>
                            <div class="pic2"><img alt="头像40*40" id="fileId40" src="{$return_path}"><br>40*40
                            </div>
                            <div class="tips">您上传的头像自动生成的效果,请注意头像是否清晰。</div>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!-- <div class="btn padd"><a id="saveIcon" href="javascript:void(0);">保存设置</a></div> -->
                    <div class="btn padd"><a id="saveIcon_new" href="javascript:void(0);">保存设置</a></div>
                    <div class="btn paddtop"><a href="{:U('product/member/index')}">返回</a></div>
                    <div class="upLoad"><a href="javascript:void(0)" onclick="showDialog()">上传照片</a></div>
                </div>
            </div>
            <!--end 会员中心右边-->
            <div class="clear"></div>
        </div>
        <!--end 会员中心首页-->
        <div class="clear"></div>
    </div>
    <!--end 会员中心-->

    <script type="text/javascript">
    $("#saveIcon_new").click(function() {
        $.post(Top_Path.webRoot+"{:U('product/member/modify_avatar_save')}", {avatar:'{$return_path}'}, function(data){
            if (data.status) {
                alert("头像修改完成");
            }else{
                alert("头像修改只支持jpg格式文件");
            }
        },'json');
    });
    </script>

    <tc_include file="Public:member_footer" />

	<tc_include file="Public:footer" />

</body>
</html>